package com.hwadee.ems.domain.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import com.hwadee.ems.domain.po.Classroom;
import com.hwadee.ems.enums.ClassroomCategory;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClassroomVO {

    public ClassroomVO(Classroom classroom) {
        this.id = classroom.getId();
        this.name = classroom.getName();
        this.category = classroom.getCategory();
        this.capacity = classroom.getCapacity();
    }

    /**
     * 教室编号
     */
    private Long id;

    /**
     * 教室名称
     */
    private String name;

    /**
     * 教室种类，0代表普通教室，1代表实验室，2代表多媒体教室，3代表其他
     */
    private ClassroomCategory category;

    /**
     * 教室容量
     */
    private Integer capacity;
    
}
